#include <iostream>
#include "Producer.h"
#include "Taskqueue.h"
using namespace std;
Producer::Producer(){}
Producer::~Producer(){}
void Producer::produce(Taskqueue & taskque){
    srand(clock());
    int cnt=20;
    while(cnt--){
        int number=rand()%100;
        taskque.push(number);
        cout<<"Producer produce a number"<<" "<<number<<endl;
    }
}
